Chun-Yu's TouchWah Effect 1.4

The TouchWah effect changes the resonance and cutoff of the input.  The cutoff is adjusted based on the root mean square (RMS) of the input.  The input is sliced into little "windows", the RMS of the "window" is calculated, and the cutoff is adjusted accordingly.  Basically, the louder the input, the higher the cutoff.  The number of times per second to calculate the RMS is adjustable. This effect attempts to model the TouchWah effect of high-end Yamaha synthesizers.  Since I don't have a high-end Yamaha synth (yet), I had to sort of guess (I've heard samples of the real TouchWah effect).

The MinCutoff and MaxCutoff parameters should be simple to understand.  If you set MaxCutoff<MinCutoff, they should automatically be switched, but currently weird stuff happens.  Just DON'T BE STUPID AND SET MAXCUTOFF < MINCUTOFF!!!

Input->SinCurve maps the input to a sin curve before calculating the RMS.  Use it to get a brighter sound.  The only catch is that it uses about 2x the CPU time, even though I generate a sin table so I don't need to call Sin() for every sample.

The ScaleFactor parameter is the number that the input is divided by (Example: input sample value-16384 value processed-8192).  Use this value to prevent clipping, since the Wah effect makes the input louder (or just lower the input volume of the next machine you connect to).

If you find any problems with this plugins (Example: it crashes Buzz), e-mail me at cshei@indiana.edu.  If you use this plugin in your music, I would love to hear it.  E-mail the Buzz song as an attachment, or e-mail me telling me where I can download an MP3 of it.

New this release:

1.  Supports Stereo Input

New in 1.3:

1.  Much more optimized.  Now about 3x less CPU time needed.
2.  Fixed parameters so you can write patterns.  Patterns incompatible with older releases! :-(